#ifdef __cplusplus
#include "./Test02.h"
#include <stdio.h>
#include <stdint.h>
Test02::Test02(){
  speed = new int;
  if(speed){
      *speed =  5;
  }
}
Test02 Test02::operator=(const Test02& rhs){
  if(this==&rhs){
    return *this;
  }
  delete speed;
  speed=new int;
  *speed=rhs.getSpeed();
  return *this;
}
#endif
int main(int argc, char const *argv[]) {
  Test02 test01;
  test01.setSpeed(9);
  Test02 test02;
  printf("测试数据%d\n", test02.getSpeed());
  test02=test01;
  printf("测试数据%d\n", test02.getSpeed());
  return 0;
}
